﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace rbrft
{
    class eat
    {

        public void aa ()
        {
            Console.WriteLine("我会吃");
        }
    }

    class cat:eat, Iclimb
    {
        public void climb()
        {
          
        Console.WriteLine("我是猫，我会爬树");
        }

    }

    class dog : eat, ISwim
    {
        public void Swim()
        {
            Console.WriteLine("我是狗，我会游泳");
        }
    }

    class duck : eat, ISwim
    {
        public void Swim()
        {
            Console.WriteLine("我是鸭子，我会游泳");
        }
    }

    class monkey : eat, Iclimb
    {
        public void climb()
        {

            Console.WriteLine("我是猴子，我会爬树");
        }
    }

    interface ISwim
    {
       
            void Swim();
      
    }

    interface Iclimb
    {
        void climb();
    }


}
